puts 'Welcome to random operation! You will provide two numbers, and I will return a random operation between them like addition, subtraction, multiplication or division!'

puts 'What is the first number?'

number1 = gets.chomp.to_i

puts 'What is the second number?'

number2 = gets.chomp.to_i

operation = rand(1..4)

case operation
  when 1
    puts "Addition result: #{number1 + number2}"
  when 2
    puts "Subtraction result: #{number1 - number2}"
  when 3
    puts "Multiplication result: #{number1 * number2}"
  when 4
    puts "Division result: #{number1 / number2}"
end
